﻿@{
    ViewBag.Title = "Upload files demo";
}
<h2>@ViewBag.Title</h2>


@using (Html.BeginForm("UploadFiles", "Home", FormMethod.Post, new {enctype="multipart/form-data"}))
{
     <input type="file" name="files" multiple="multiple" /><br />
     <input type="file" name="files" /><br />
     <input type="file" name="files" /><br />
     <input type="file" name="files" /><br />
     <input type="file" name="files" /><br />
    
     @*
     <!-- Another way of writing the same thing  -->
     <input type="file" name="files[0]" /><br />
     <input type="file" name="files[1]" /><br />
     <input type="file" name="files[2]" /><br />
     <input type="file" name="files[3]" /><br />
     <input type="file" name="files[4]" /><br />
     *@
    
     <input type="submit" name="Submit" id="Submit" value="Upload" />
}